extends ./layout.jade

block content
    -var index = {heading: '欢迎来到 Microblog', description: 'Microblog 是一个基于 Node.js 的微博系统。'}
    -var carbo = {name: 'Carbo', text: '东风破早梅 向暖一枝开 冰雪无人见 春从天上来'}
    -var byvoid = {name: 'BYVoid', text: 'Open Chinese Convert (OpenCC) 是一个开源的中文简繁转换项目, 致力于制作高质量的基于统计预料的简繁转换词库。'}
    -var fozheng = {name: '佛振', text: '中州韵输入法引擎 / Rime Input Method Engine 取意历史上通行的中州韵'}
    -var articles = [carbo, byvoid, fozheng]

    mixin speak(article)
        .col-md-4
            h2= article.name + "说"
            p= article.text
            a.btn.btn-default(href="#") 更多详情 »

    mixin speaks(articles)
        each item in articles
            +speak(item)

    section.jumbotron
        .container
            h1= index.heading
            p= index.description
            p
                a.btn.btn-primary.btn-lg(href="/login") 登录
                a.btn.btn-lg(href="/reg") 立即注册
    section.container
        .row
            +speaks(articles)